<form name="commission_rule_edit_form" class="w620">
    <table width="100%" class="mt10">
        <tbody>
        <tr>
            <td align="left" class="form-cell w120 pt16" valign="top">
                <em class="c-red">*&nbsp;</em> 规则名称：
            </td>
            <td class="pt12">
                <input type="text" name="commission_rule_name" id="commission_rule_name" class="input-text mr10"
                       ng-model="data.ruleName" required>

                <p role="alert"
                   ng-show="(commission_rule_edit_form.$submitted || commission_rule_edit_form.commission_rule_name.$touched) && commission_rule_edit_form.commission_rule_name.$error.required"
                   class="error ng-hide c-red lh30">
                    规则名称不能为空</p>
            </td>
        </tr>
        <tr>
            <td align="left" class="form-cell w120 pt16" valign="top">
                <em class="c-red">*&nbsp;</em> 规则适用身份：
            </td>
            <td class="pt12">
                <div class="p15 b-gray">
                    <div class="row clearfix" ng-if="!loading && (brokerIdentities && brokerIdentities.length>0)">
                        <div class="col-md-6" ng-repeat="item in brokerIdentities">
                            <span class="checkbox">
                                <input type="checkbox" id="commission_rule_edit_{{item.myParamValueId}}"
                                       ng-model="item.selected" ng-change="updateIdentitySelected(item)"/>
                                <label for="commission_rule_edit_{{item.myParamValueId}}">{{item.Text}}</label>
                            </span>
                        </div>
                    </div>

                    <div class="text-center" ng-if="loading">
                        加载中。。。
                    </div>
                    <div class="text-center" ng-if="!loading && (!brokerIdentities || brokerIdentities.length==0)">
                        暂无身份
                    </div>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
</form>